3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
This section describes the routines you can use to create and destroy viewer objects. See "Creating a Viewer" for complete source code examples that illustrate how to use these routines.
You can use the Q3ViewerNew function to create a new viewer object.
TQ3ViewerObject Q3WinViewerNew (
HWND window,
const RECT *rect,
unsigned long flags );
The Q3ViewerNew function returns, as its function result, a reference to a new viewer object that is to be drawn in the window specified by the port parameter, in the location specified by the rect parameter. The flags parameter specifies the desired set of viewer flags. See "Viewer Flags" for information on the flags you can specify when calling Q3ViewerNew .
The Q3ViewerNew function calls the QuickDraw 3D function Q3Initialize if your application has not already called it.
The object returned by Q3ViewerNew , of type TQ3ViewerObject , is not a general QuickDraw 3D object. Accordingly, you cannot call QuickDraw 3D object management functions, such as Q3Object_Dispose or Q3Object_Duplicate , on it. The type TQ3ViewerObject is used as a parameter type in other viewer routines, to refer to a viewer object.
Previous | QD3D Book | Overview | Chapter Contents | Next |